<template>
    <div>
        <h1>添加检测记录</h1>
        <el-form ref="form" :model="form" label-width="130px">
            <el-form-item label="活动时间">
                <el-col :span="6">
                <el-date-picker type="date" placeholder="选择日期" v-model="form.date" style="width: 100%;"></el-date-picker>
                </el-col>
        </el-form-item>
  
        <el-form-item label="核酸检测结果">
            <el-radio-group v-model="form.hstest">
            <el-radio :label="1">阳性</el-radio>
            <el-radio :label="0">阴性</el-radio>
            </el-radio-group>
        </el-form-item>

        <el-form-item label="CT检测结果">
            <el-radio-group v-model="form.cttest">
            <el-radio :label="1">阳性</el-radio>
            <el-radio :label="0">阴性</el-radio>
            </el-radio-group>
        </el-form-item>
        
        <el-form-item>
            <el-button type="primary" @click="onSubmit">提交</el-button>
            <el-button @click="quxiao">取消</el-button>
        </el-form-item>
        </el-form>
    </div>
</template>

<script>
  export default {
    data() {
      return {
        form: {
          date:'',
          hstest:0,
          cttest:0
        }
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      },
      quxiao(){
        history.go(-1)
      }
    }
  }
</script>